<?php
// +----------------------------------------------------------------------
// | snake
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

class Menu extends Validate
{
    protected $rule = [
		'name'     => 'require',
		'pid'      => 'require',
		'ordernum' => 'number',
    ];

    protected $message = [
		'name.require'    => '菜单名称不能为空',
		'pid.require'     => '请选择上级菜单',
		'ordernum.number' => '序号必须为数字',
    ];

}